package org.csu.pm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.csu.pm.common.BaseResponse;
import org.csu.pm.entity.User;
import org.csu.pm.model.dto.LoginBody;
import org.csu.pm.model.dto.RegisterBody;
import org.csu.pm.model.dto.UpdatePhoneBody;

/**
 * @author kwanho
 * @description 针对表【user】的数据库操作Service
 * @createDate 2022-11-11 20:16:25
 */
public interface UserService extends IService<User> {
    BaseResponse<?> register(RegisterBody loginBody);

    BaseResponse<?> login(LoginBody loginBody);

    User getSafeUser(User user);

    BaseResponse<?> getCaptcha(Long userId, String phone);

    BaseResponse<?> updatePhone(Long userId, UpdatePhoneBody updatePhoneBody);

    BaseResponse<?> deleteAccount(Long userId);

    BaseResponse<?> getAccountInfo(Long userId);
}
